-- GENERATED SPELL FOR [Sanctum Sentry] --


function spell0_34014(pUnit, Event) --@Rip Flesh,n/a--
pUnit:FullCastSpellOnTarget(64375,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34014', 20000, 1)
end

function spell1_34014(pUnit, Event) --@Rip Flesh,n/a--
pUnit:FullCastSpellOnTarget(64667,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34014', 20000, 1)
end

function spell2_34014(pUnit, Event) --@Savage Pounce,n/a--
pUnit:FullCastSpellOnTarget(64374,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34014', 5000, 1)
end

function spell3_34014(pUnit, Event) --@Savage Pounce,n/a--
pUnit:FullCastSpellOnTarget(64666,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34014', 5000, 1)
end

function Sorts_34014(pUnit, Event)
local choix_sorts_34014 = math.random(0, 3)
if choix_sorts_34014 == 0 then
pUnit:RegisterEvent('spell0_34014', 1, 1)
end
if choix_sorts_34014 == 1 then
pUnit:RegisterEvent('spell1_34014', 1, 1)
end
if choix_sorts_34014 == 2 then
pUnit:RegisterEvent('spell2_34014', 1, 1)
end
if choix_sorts_34014 == 3 then
pUnit:RegisterEvent('spell3_34014', 1, 1)
end
end

function mob34014_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34014', math.random(1500, 3000), 1)
end

function mob34014_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34014_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34014_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34014, 1, 'mob34014_Action')
RegisterUnitEvent(34014, 2, 'mob34014_Leave')
RegisterUnitEvent(34014, 3, 'mob34014_Kill')
RegisterUnitEvent(34014, 4, 'mob34014_Die')
